{include file="kuerp/common/menu" /}
<div class="panel panel-default panel-intro">
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">

                    <script type="text/html" id="thisToolbar">
                        <div class="layui-btn-container">
                           <button class="layui-btn layui-icon-btn layui-btn-sm layui-bg-cyan" lay-event="refresh"><i class="layui-icon">&#xe669;</i> {:__('Refresh')}</button>
                        </div>
                    </script>

                    <form class="layui-form layui-search" id="layui-search">
                        
                        <div class="layui-input-inline">
                            <input type="text" name="purchase_time" id="purchase_time" autocomplete="off" placeholder="{:__('Purchase_time')}" class="layui-input">
                        </div>
                        <div class="layui-input-inline">
                            <select name="purchase_type" id="purchase_type" class="layui-input" lay-filter="customerType">
                                <option value="1" selected>{:__('By_customer')}</option>
                                <option value="2">{:__('By_goods')}</option>
                            </select>
                        </div>
                        <div class="layui-input-inline search_type search_type1">
                            <select name="customerType" id="customerType" class="layui-input">
                                <option value="">{:__('please_select_customer_category')}</option>
                                {foreach name="customerType" item="vo"}
                                <option value="{$vo.id}">{$vo.type_name}</option>
                                {/foreach}
                            </select>
                        </div>
                        <div class="layui-input-inline search_type search_type1" style="min-width: 252px;">
                            <input name="customerList" type="hidden" id="customerList" value="">
                            <div id="customers_ids" class="xm-select-demo"></div>
                        </div>
                        <div class="layui-input-inline search_type search_type2">
                            <select name="goodsType" id="goodsType" class="layui-input">
                                <option value="">{:__('please_select_goods_category')}</option>
                                {foreach name="goodsType" item="vo"}
                                <option value="{$vo.id}">{$vo.supplier_type_name}</option>
                                {/foreach}
                            </select>
                        </div>
                        <div class="layui-input-inline search_type search_type2" style="min-width: 252px;">
                            <input name="goods_code" type="hidden" id="goods_code" value="">
                            <div id="goods_codes" class="xm-select-demo"></div>
                        </div>
                        <div class="layui-input-inline " style="width: 90px">
                            <button class="layui-btn layui-btn-sm btn-refresh" type="button" id="search" data-type="reload">
                                 <i class="layui-icon"></i> {:__('Search')}
                            </button>
                         </div>
                    </form>
                    <div class="layui-tab">
                        <ul class="layui-tab-title" style="display: none">
                            <li class="layui-this clicks1"></li>
                            <li class="clicks2"></li>
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-tab-item1 layui-show">
                                <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                                       width="100%" lay-filter="table">
                                </table>
                            </div>
                            <div class="layui-tab-item layui-tab-item2">
                                <table id="table2" class="table table-striped table-bordered table-hover table-nowrap"
                                       width="100%" lay-filter="table2">
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</div>
